//
//  Urls.swift
//  suda
//
//  Created by youai on 2019/7/11.
//  Copyright © 2019年 youi. All rights reserved.
//

import Foundation
//前台cas：
let HOST_Login = "https://cw.51camel.com/cas"
//API
let HOST_URL = "https://open.51camel.com/wm/api"
//图片服务器
let IMG_HOST_URL = "https://cwres.51camel.com/"
let JDIMG_HOST_URL = "http://img13.360buyimg.com/n1/"
//20200427 ，应要求修改头像url前缀
let IMG_HOST_URL2 = "https://cwres.51camel.com/"
//测试环境http://121.8.143.167:8081/lpdadmin
//生产环境https://cw.51camel.com/appadminapi/lpdadmin
let YouAi_Host = "http://121.8.143.167:8081/lpdadmin"
enum APIUrl : String {
    ///查询首页信息（主页和导航栏）
    case A_HomePage = "/app/getSysnavigation"
    
    case A_SyspushdescList = "/app/getSyspushdescList"

    case A_delSyspushdesc = "/app/delSyspushdescByIds"

    case A_getUnreadSyspushdescList = "/app/getUnreadSyspushdescList"

    ///首页登录
    case L_Login = "/v1/LoginCWPlatformAccount"
    ///登出
    case L_Logout = "/v1/LogoutCWPlatformAccount"
    ///首页登录,验票
    case L_Ticket = "/v1/ValidateProvisionalTicket"
    ///激活账号短信验证码
    case L_SMSCode_Activate = "/v1/SendAccountActiveVaildCode"
    ///获取激活资料
    case L_ActivatedUser = "/v1/GetAccountInfoWaitForActivated"
    
    ///发送忘记密码短信验证码
    case L_SendForgotPasswordSMSValideCode = "/v1/SendForgotPasswordSMSValideCode"
    ///忘记密码修改
    case L_RememberPwd = "/v1/GetBackPassword"
    ///激活时设置密码
    case L_SetAccountPassWord = "/v1/SetAccountPassWord"
    
    //商城列表
    case S_StoreList = "/v1/GetUserVisitedMallList"
    //设置默认商城
    case S_SetMall = "/v1/SetUserDefaultMall"
    //当前商城信息
    case S_GetMall = "/v1/GetCurrentMallInfo"
    //切换商城
    case S_SwitchMall = "/v1/SwitchVisitedMall"
    
    //专区标识
    case DicCode = "/v1/GetDictionaryList"
    //根据用户身份Token发送短信验证码
    case SendVerifyCode = "/v1/SendVerifyCode"
    //搜索历史
    case M_SearchHistory = "/v1/GetUserSearchKeywordHistory"
    //热门搜索
    case M_SearchHot = "/v1/GetHotSearchKeyword"
    //按照关键字搜索
    case M_SearchAction = "/v1/SearchProductList"
    //删除搜索历史
    case M_Del_SearchHistory = "/v1/ClearUserSearchKeyword"
    
    //获取自营的分类目录
    case M_ZYCatalog = "/v1/GetZYProductCategory"
    //获取京东的分类目录
    case M_JDCatalog = "/v1/GetJDProductCategory"
    //获取分类目录下的商品列表
    case M_ProductByCategoryID = "/v1/GetProductListByCategoryID"
    //编辑购物车中商品数量
    case M_UpdateProductCartNum = "/v1/UpdateProductCartNum"
    //删除购物车中商品数量
    case M_DeleteProductCart = "/v1/DeleteProductCart"
    //购物车列表
    case M_GetCartList = "/v1/GetCartList"
    //加入购物车
    case M_AddCart = "/v1/AddCart"
    //用户信息
    case M_GetUserInfo = "/v1/GetUserInfo"
    //更新头像
    case M_UpdateUserHeaderPic = "/v1/UpdateUserHeaderPic"
    //修改密码
    case M_UpdateUserPassword = "/v1/UpdateUserPassword"

    //历史积分明细记录
    case M_GetPagingMemCentsAccountFlow = "/v1/GetPagingMemCentsAccountFlow"
    //积分信息
    case M_GetMemCentAccountBalance = "/v1/GetMemCentAccountBalance"
    
    //商品推荐列表
    case M_GetRecommendProductList = "/v1/GetRecommendProductList"
    //商品详情信息
    case M_GetProductDetail = "/v1/GetProductDetail"
    //打开福利
    case M_OpenWelfare = "/v1/OpenWelfare"
    //福利历史记录
    case M_GetUserWelfareFlowHistory = "/v1/GetUserWelfareFlowHistory"
    //获取用户福利列表
    case M_GetUserWelfareList = "/v1/GetUserWelfareList"
    //领取福利
    case M_ReceiveWelfare = "/v1/ReceiveWelfare"
    
    
    //收藏商品
    case M_AddCollectedProduct = "/v1/AddCollectedProduct"
    //收藏商品列表
    case M_GetCollectedList = "/v1/GetCollectedList"
    //移除收藏
    case M_DeleteCollection = "/v1/DeleteCollection"
    //商品是否被收藏
    case M_CheckProductCollectExist = "/v1/CheckProductCollectExist"
    
    //获取用户收货地址
    case M_GetUserContactAddressList = "/v1/GetUserContactAddressList"
    //新增用户收货地址
    case M_AddContactAddress = "/v1/AddContactAddress"
    //修改用户收货地址
    case M_UpdateContactAddress = "/v1/UpdateContactAddress"
    //删除用户收货地址
    case M_DeleteContactAddress = "/v1/DeleteContactAddress"
    //获取所有收货地址的省列表信息
    case M_GetProvinceList = "/v1/GetProvinceList"
    //根据省获取收货地址的市列表信息
    case M_GetCityList = "/v1/GetCityList"
    //根据省获取收货地址的区列表信息
    case M_GetDistrictList = "/v1/GetDistrictList"
    //根据区获取收货地址的街道列表信息
    case M_GetTownList = "/v1/GetTownList"
    //获取当前商城自提地址信息列表接口
    case M_SelfAddress = "/v1/SelfAddress"
    //根据地址名称获取地址标识（地址转换
    case M_GetAddressIDByAddressName = "/v1/GetAddressIDByAddressName"
    
    //兑换商品（下单）
    case M_SubmitOrder = "/v1/SubmitOrder"
    //购物车下单接口
    case M_CartSubmitOrder = "/v1/CartSubmitOrder"
    //支付
    case M_PayOrder = "/v1/PayOrder"
    //获取物流信息
    case M_GetLogisticsInfo = "/v1/GetLogisticsInfo"
    //获取用户订单列表
    case M_GetUserOrderList = "/v1/GetUserOrderList"
    //获取用户订单详细信息
    case M_GetUserOrderDetail = "/v1/GetUserOrderDetail"
    //取消订单
    case M_CancelOrder = "/v1/CancelOrder"
    //确认收货
    case M_OrderConfirmReceipt = "/v1/OrderConfirmReceipt"
    //运费计算
    case M_FreightCaculator = "/v1/FreightCaculator"
    //获取不同状态的订单数量
    case M_GetUserDifferentStateOrderQuantity = "/v1/GetUserDifferentStateOrderQuantity"
    
    //库存查询
    case M_GetProductStock = "/v1/GetProductStock"
    //商品区域购买限制查询
    case M_GetProductAreaLimit = "/v1/GetProductAreaLimit"
    //商品可售验证范围查询
    case M_GetAvailableSaleVerifyRange = "/v1/GetAvailableSaleVerifyRange"
    
    //运费说明
    case M_GetMallFreightIllustration = "/v1/GetMallFreightIllustration"

    //实名认证
    case F_NameAuthentication = "/v1/NameAuthentication"
    //获取大账户信息
    case F_GetFinancialAccount = "/v1/GetFinancialAccount"
    //获取银行卡列表
    case F_GetBankCardList = "/v1/GetBankCardList"
    //获取银行卡详细信息
    case F_GetBankCardDetailInfo = "/v1/GetBankCardDetailInfo"
    //绑定银行卡
    case F_BindingBankCard = "/v1/BindingBankCard"
    //解绑银行卡
    case F_UnbindingBankCard = "/v1/UnbindingBankCard"
    //金融大账户发送短信接口
    case F_FinanceAccountSendVerifyCode = "/v1/FinanceAccountSendVerifyCode"
    
    ///中台交互部分
    //引导
    case YI_GetSysguidepage = "/app/getSysguidepage"
    //APP获取最新的一篇文章
    case YI_GetLatestSysarticle = "/app/getLatestSysarticle"
    //APP获取关注文章列表
    case YI_GetFocusSysarticleList = "/app/getFocusSysarticleList"
    //APP获取往期文章列表
    case YI_GetPastSysarticleList = "/app/getPastSysarticleList"
//    上传图片-base64方式
    case YI_UploadImgByBase64 = "/uploadImgByBase64"
    //A-9用户提交反馈信息
    case YI_AddUserfeedback = "/app/addUserfeedback"
    //A-24 查询所有企业（商城）信息
    case YI_GetAllSysenterprise = "/app/getAllSysenterprise"
//    中台获取用户信息
    case YI_GetUserInfoForBackstage = "/app/getUserInfoForBackstage"
    //A-6查询系统当前版本信息
    case YI_GetCurrrentSysversion = "/app/getCurrrentSysversion"
    //    A-22 App获取标签
    case YI_GetLables = "/app/getLables"
    //    A-7查询常见问题列表信息
    case YI_GetSysqaList = "/app/getSysqaList"
    //    A-8查询常见问题详情信息
    case YI_GetSysqaById = "/app/getSysqaById"
    
    case YI_GetSysenterpriseById = "/app/getSysenterpriseById"
    //APP通过商城Id，广告类型，当前时间获取开启的广告列表（按创建时间倒序）
    case YI_GetSysadvertising = "/app/getSysadvertising"
    //A-11查询基础设置详情信息（查询app分页数、商城api地址、自营搜索、金融大账号、执照跳转链接）
    case YI_GetSyssettingbase = "/app/getSyssettingbase"
    //A-13查询第三方配置详情信息
    case YI_GetSyssettingthird = "/app/getSyssettingthird"
    //A-10查询推送信息
    case YI_GetSyspushById = "/app/getSyspushById"
}
